<template>
	<view class="content">
		
		<view class="html" v-html="data.html"></view>
		
	</view>
</template>
<style>
	.content{}

</style>
<script>
	import Share from '@/common/wx_share.js'
	export default {
		data() {
			return {
				share:{
					title:"",
					path:'/pages/tabbar/index',
					imageUrl:'',
					desc:'',
					content:''
				},
				data:{
					html:""
				}
				
			}
		},
		onLoad(e){
			var that = this;
			uni.getLocation({
				// type: 'wgs84',
				type: 'gcj02',
				success: function (res) {
					that.data.lng = res.longitude
					that.data.lat = res.latitude
					that.AjaxLoad(e.html)
				},
				error:function(e){},
			});
			// that.AjaxLoad(e.html)
		},
		methods: {
			AjaxLoad(e){
				let param={
					token:this._$userToken("userInfo").token,
					lng:this.data.lng,
					lat:this.data.lat
					// lng: 106.5686,
					// lat: 29.55314
				};
				this._$InitRequest.request("coffee/index", param).then(res => {
					for (var i = 0; i < res.data.news.length; i++) {
						if( e == res.data.news[i].id ){
							this.data.html = res.data.news[i].ar_content
						}
					}
				},error=>{})
			},
			
			
		}
	}
</script>
<style lang="scss" scoped>
/deep/ .uni-input-input {font-size:32upx}
/deep/ .uni-radio-input-checked{background-color:rgb(110,43,34) !important;border:2upx solid white !important}
.content .html{
  ::v-deep {
    img {
      width: 100%;
    }
  }
}
</style>